import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {LogoutComponent} from "./components/app-logout/logout.component";

// Import Containers

import {AppLoginComponent} from "./login/appLogin.component";
import {appLoginRoutes} from "./login/appLogin.routes";
import {QrCodeScanComponent} from "./views/qrcode-scan/qrcode-scan.component";

export const routes: Routes = [
    // ...appLoginRoutes,
    {path: 'dashboard', loadChildren: './views/dashboard/dashboard.module#DashboardModule'},
    {path: 'scan', component: QrCodeScanComponent},
    {path: 'login', component: AppLoginComponent},
    {path: 'logout', component: LogoutComponent},
    {path: '**', component: AppLoginComponent}

];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
})
export class AppRoutes {
}
